<?php

/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/8/22
 * Time: 11:44
 */
class 列出mysql指定数据库中的所有表
{

}
if (!function_exists('mysql_list_db_tables')) {

    function mysql_list_db_tables($database) {

        $tables = Array();

        $results = mysql_query('SHOW TABLES FROM ' . $database);
        while($row = @mysql_fetch_assoc($results)) { $tables[] = $row['Tables_in_' . $database]; }

        return $tables;

    }

}